﻿/*
 * TLLogicEntity.h
 *
 *  Created on: Apr 24, 2015
 *      Author: yuliang
 */

#ifndef TLLOGICENTITY_H_
#define TLLOGICENTITY_H_

#include "LLogicBase.h"
#include "common/LSocket.h"

class CTLLogicEntity : public CTLLogicBase {
public:
	CTLLogicEntity();
	virtual ~CTLLogicEntity();

	// 初始化(资源/业务)
	virtual void LogicInit();
	// 捕获此业务模块的业务包,是返回true,否则返回false
	virtual bool CatchLogic(const ProtocolBase *head, char * data, uint32_t len, void * connect);

	void OpenOneBox(uint8_t box, uint8_t index, const GoodsInfo& goods);
};

#endif /* TLLOGICENTITY_H_ */
